<%--
  Created by IntelliJ IDEA.
  User: kkk
<%--
  Created by IntelliJ IDEA.
  User: kkk
  Date: 2022/11/8
  Time: 10:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script src="${pageContext.request.contextPath}/statics/layui/layui.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/layui/css/layui.css">
</head>
<body>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
    <legend>角色详情</legend>
</fieldset>

<form class="layui-form" action="" lay-filter="example">
    <div class="layui-form-item">
        <label class="layui-form-label">角色编号</label>
        <div class="layui-input-block">
            <input type="text" required lay-verify="required" value="${role.roleId}" readonly lay-verify="title" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色名称</label>
        <div class="layui-input-block">
            <input type="text" required lay-verify="required" value="${role.roleName}" readonly lay-verify="title" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色权限字符串</label>
        <div class="layui-input-block">
            <input type="text" readonly required lay-verify="required" value="${role.roleKey}" autocomplete="off"  class="layui-input">
            <span>${roleKeyError}</span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">显示顺序</label>
        <div class="layui-input-block">
            <input type="text" readonly required lay-verify="required" value="${role.roleSort}" autocomplete="off"  class="layui-input">
            <span>${roleSortError}</span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">数据范围</label>
        <div class="layui-input-block">
            <input type="text" readonly value="
                <c:if test="${role.dataScope==1}">全部数据权限</c:if>
                <c:if test="${role.dataScope==2}">自定数据权限</c:if>
                <c:if test="${role.dataScope==3}">自定数据权限</c:if>
                <c:if test="${role.dataScope==4}">本部门及以下数据权限</c:if>"
                   required lay-verify="required"  autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色状态</label>
        <div class="layui-input-block">
            <input type="text" readonly required lay-verify="required" value="${role.status=="1"? "停用":"正常"}" autocomplete="off"  class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">删除标志</label>
        <div class="layui-input-block">
            <input type="text" required readonly lay-verify="required" value="${role.delFlag=="0"? "存在":"删除"}" autocomplete="off"  class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input type="text" readonly lay-verify="title" autocomplete="off" value="${role.remark}" class="layui-input">
        </div>
    </div>
</form>
</body>
</html>
